Block placing tool for building a user-defined algorithm for electronic trading

ABSTRACT

Certain embodiments provide a block placing tool for building a user-defined algorithm for electronic trading. Certain embodiments provide for receiving by a block placing tool a selection of one or more blocks. Certain embodiments provide for receiving by a block placing tool a mapping definition including a mapping between block types and/or attributes. Certain embodiments provide for placing blocks based on a selection of blocks and a mapping definition.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. patent applicationSer. No. 13/014,547, filed Jan. 26, 2011, and entitled “Block PlacingTool For Building A User-Defined Algorithm For Electronic Trading”, theentire contents of which is herewith incorporated by reference into thepresent application for all purposes.

BACKGROUND

The presently described technology is directed towards electronictrading systems. More particularly, certain embodiments are directedtowards a block placing tool for building a user-defined algorithm forelectronic trading.

An electronic trading system generally includes a client device incommunication with an electronic exchange that may serve as a host forthe client device. Typically, the electronic trading system provides forelectronically matching orders to buy and sell tradeable objects to betraded. A tradeable object is an item that may be traded. Stocks,options, futures contracts, securities, and commodities are a fewexamples of tradeable objects.

The electronic exchange transmits market data to the client device. Themarket data may include, for example, price data, market depth data,last traded quantity data, data related to a market for the tradeableobject, and/or combinations thereof. The client device receives marketdata from the electronic exchange.

In some electronic trading systems, a client device receives andprocesses market data without displaying the market data on a displaydevice. For example, a “black-box” algorithmic trading system may runautomatically and without displaying market data. However, in otherelectronic trading systems, the client device displays processed marketdata on a display device. The client device may include software thatcreates a trading screen. In general, a trading screen enables a user toparticipate in an electronic trading session. For example, a tradingscreen may enable a user to view market data, submit a trade order tothe electronic exchange, obtain a market quote, monitor a position,and/or combinations thereof.

In some electronic trading systems, the client device sends trade ordersto the electronic exchange. However, in other electronic tradingsystems, other devices, such as server side devices, are responsible forsending the one or more trade orders to the electronic exchange. Uponreceiving a trade order, the electronic exchange enters the trade orderinto an exchange order book and attempts to match quantity of the tradeorder with quantity of one or more contra-side trade orders. By way ofexample, a sell order is contra-side to a buy order with the same price.Similarly, a buy order is contra-side to a sell order with the sameprice. Unmatched quantity of a trade order is held in the exchange orderbook until quantity of a trade order is matched by the electronicexchange. Unmatched quantity of a trade order may also be removed fromthe order book when a trade order is cancelled, either by the clientdevice or electronic exchange. Upon matching quantity of the tradeorder, the electronic exchange may send a confirmation to the clientdevice that the quantity of the trade order was matched.

Electronic exchanges have made it possible for an increasing number ofparticipants to be active in a market at any given time. The increase inthe number of potential market participants has advantageously led to,among other things, a more competitive market and greater liquidity. Ina competitive environment, like electronic trading, where every secondor a fraction of second counts in intercepting trading opportunities, itis desirable to offer tools that help a participant effectively competein the marketplace or even give an edge over others.

Some current systems include algorithmic trading systems which may allowfor quicker evaluation and reaction to changes in market information.However, such systems typically require skilled programmers to developthe trading algorithms, take days (or even months) to test and debug,and the development and debugging process must be repeated when a traderdecides on a different approach or desires a modification to thealgorithm's logic.

SUMMARY

The embodiments described herein include, but are not limited to,various devices, systems, methods, and computer program products.

Certain embodiments provide a block placing tool for building auser-defined algorithm for electronic trading. Certain embodimentsprovide for receiving by a block placing tool a selection of one or moreblocks. Certain embodiments provide for receiving by a block placingtool a mapping definition including a mapping between block types and/orattributes. Certain embodiments provide for placing blocks based on aselection of blocks and a mapping definition.

Certain embodiments provide a method including receiving by a computingdevice a selection of blocks, receiving by the computing device amapping definition, and placing by the computing device at least one newplaced block in an algorithm being designed based on the selection ofblocks and the mapping definition. The selection of blocks includes atleast one block. Each block in the selection of blocks has a block type.The mapping definition includes at least one mapping. Each mapping inthe mapping definition specifies a relationship between a first type anda corresponding second type. The first type includes a first block type.The second type includes a second block type.

Certain embodiments provide a computer readable medium having storedtherein instructions executable by a processor, wherein the instructionsare executable to receive a selection of blocks, receive a mappingdefinition, and place at least one new placed block in an algorithmbeing designed based on the selection of blocks and the mappingdefinition. The selection of blocks includes at least one block. Eachblock in the selection of blocks has a block type. The mappingdefinition includes at least one mapping. Each mapping in the mappingdefinition specifies a relationship between a first type and acorresponding second type. The first type includes a first block type.The second type includes a second block type.

Other embodiments are described below. In addition, modifications may bemade to the described embodiments without departing from the spirit orscope of the inventions.

BRIEF DESCRIPTION OF THE DRAWINGS

Example embodiments are described herein with reference to the followingdrawings.

FIG. 1 illustrates a block diagram of an electronic trading system inwhich certain embodiments may be employed.

FIG. 2A illustrates a block diagram of an electronic trading system inwhich certain embodiments may be employed.

FIG. 2B illustrates a trading interface in which certain embodiments maybe employed.

FIGS. 3A-3C illustrate a trading interface according to certainembodiments.

FIGS. 4A-4F illustrate an interface for specifying a mapping definitionaccording to certain embodiments.

FIG. 5 illustrates a flowchart of a method according to certainembodiments.

FIGS. 6A-6B illustrate a trading interface according to certainembodiments.

FIG. 7 illustrates a flowchart of a method according to certainembodiments.

FIG. 8 illustrates a block diagram of a computing device according tocertain embodiments.

The foregoing summary, as well as the following detailed description,will be better understood when read in conjunction with the drawingswhich show certain embodiments. The drawings are for the purpose ofillustrating certain embodiments, but it should be understood that thepresent inventions are not limited to the arrangements andinstrumentality shown in the drawings.

DETAILED DESCRIPTION I. Example Electronic Trading System

FIG. 1 illustrates a block diagram of an electronic trading system 100in which certain embodiments may be employed. The system 100 includes aclient device 110, a gateway 120, and an electronic exchange 130. Theclient device 110 is in communication with the gateway 120. The gateway120 is in communication with the exchange 130.

As used herein, the phrase “in communication with” may include in directcommunication and indirect communication through one or moreintermediary components.

In operation, the client device 110 may send orders to buy or selltradeable objects at the exchange 130. For example, a user may utilizethe client device 110 to send the orders. The orders are sent throughthe gateway 120 to the exchange 130. In addition, market data is sentfrom the exchange 130 through the gateway 120 to the client device 110.The user may also utilize the client device 110 to monitor this marketdata and base a decision to send an order for a tradeable object on themarket data.

A tradeable object is anything which can be traded with a quantityand/or a price. For example, financial products such as stocks, options,bonds, futures, currency, warrants, funds derivatives, securities,commodities, traded events, goods, and collections and/or combinationsof these may be tradeable objects. A tradeable object may be “real” or“synthetic.” A real tradeable object includes products that are listedby an exchange. A synthetic tradeable object includes products that aredefined by the user and are not listed by an exchange. For example, asynthetic tradeable object may include a combination of real (or othersynthetic) products such as a synthetic spread created by a traderutilizing a client device 110.

The client device 110 may include one or more electronic computingplatforms such as a hand-held device, laptop, desktop computer,workstation with a single or multi-core processor, server with multipleprocessors, and/or cluster of computers, for example. For example, whilelogically represented as a single device, client device 110 may includea trading terminal in communication with a server, where collectivelythe trading terminal and the server are the client device 110. Thetrading terminal may provide a trading screen to a user and maycommunicate commands to the server for further processing of the user'sinputs through the trading screen, such as placing orders.

The client device 110 is generally owned, operated, controlled,programmed by, configured by, or otherwise used by a user. As usedherein, the phrase “user” may include, but is not limited to, a human(for example, a trader) or an electronic trading device (for example,including a processor and memory or an algorithmic trading system). Oneor more users may be involved in the ownership, operation, control,programming, configuration, or other use, for example.

The client device 110 may include one or more trading applications. Thetrading application(s) may, for example, process market data byarranging and displaying the market data in trading and chartingwindows. The market data may be received from exchange 130, for example.As another example, the market data may be received from a simulationenvironment that provides live or historical data and/or simulates anexchange but does not effectuate real-world trades. This processing maybe based on user preferences, for example. The trading application(s)may include an automated trading tool such as an automated spreadtrading tool, for example. The one or more trading applications may bedistributed across one or more of the computing devices of the clientdevice 110. For example, certain components of a trading application maybe executed on a trading workstation and other components of the tradingapplication may be executed on a server in communication with theworkstation.

The client device 110 may include an electronic trading workstation, aportable trading device, an algorithmic trading system such as a “blackbox” or “grey box” system, an embedded trading system, and/or anautomated trading tool, for example. For example, the client device 110may be a computing system running a copy of X_TRADER®, an electronictrading platform provided by Trading Technologies International, Inc. ofChicago, Ill. As another example, the client device 110 may be acomputing device running an automated trading tool such as Autospreader®and/or Autotrader™, also provided by Trading Technologies International,Inc.

Trading applications may be stored in a computer readable medium of theclient device 110. In certain embodiments, certain components of atrading application may be stored on a trading workstation and othercomponents of the trading application may be stored on a server incommunication with the workstation. In certain embodiments, one or morecomponents of a trading application may be loaded into the computerreadable medium of the client device 110 from another computer readablemedium. For example, the trading application (or updates to the tradingapplication) may be stored by a manufacturer, developer, or publisher onone or more CDs or DVDs, which are then provided to someone responsiblefor loading the application onto the client device 110 or to a serverfrom which the client device 110 retrieves the trading application. Asanother example, the client device 110 may receive the tradingapplication (or updates to the trading application) from a server, forexample, via the Internet or an internal network. The client device 110may receive the trading application or updates when requested by theclient device 110 (“pull distribution”) and/or un-requested by theclient device 110 (“push distribution”).

The client device 110 is adapted to send orders to buy or sell atradeable object. The client device 110 may also be adapted to cancelorders, change orders, and/or query an exchange, for example. As anotherexample, the client device 110 may be adapted to send orders to asimulated exchange in a simulation environment that does not effectuatereal-world trades.

The orders sent by the client device 110 may be sent at the request of auser or automatically, for example. For example, a trader may utilize anelectronic trading workstation to place an order for a particulartradeable object, manually providing various parameters for the ordersuch as an order price and/or quantity. As another example, an automatedtrading tool may calculate one or more parameters for an order andautomatically send the order. In some instances, an automated tradingtool may prepare the order to be sent but not actually send it withoutconfirmation from the user.

In certain embodiments, the client device 110 includes a user interface.The user interface may include one or more display devices forpresenting a text-based or graphical interface of a trading applicationto a user, for example. For example, the display devices may includecomputer monitors, hand-held device displays, projectors, and/ortelevisions. The user interface may be used by the user to specify orreview parameters for an order using a trading application. The userinterface may include one or more input devices for receiving input froma user, for example. For example, the input devices may include akeyboard, trackball, two or three-button mouse, and/or touch screen. Theuser interface may include other devices for interacting with a user.For example, information may be aurally provided to a user through aspeaker and/or received through a microphone.

In certain embodiments, a trading application may include one or moretrading screens to enable a trader to interact with one or more markets.Trading screens may enable traders to obtain and view marketinformation, set order entry parameters, enter and cancel orders, and/ormonitor positions while implementing various trading strategies, forexample. For example, a trading application may receive information(such as bid prices, bid quantities, ask prices, ask quantities, pricesand quantities for past sales, and/or other market related information)from exchange 130 which, in turn, may be displayed with a user interfaceof client device 110. Based on the received information, the tradingscreen may display a range of price levels and corresponding bid and askquantities for the price levels in regard to tradeable objects. In orderto provide the trader with pertinent trading information, the tradingscreen may display a range of prices (and the corresponding bid and askquantities) around the inside market. The information may becontinuously or regularly provided to the trading application, whichallows the trading application to update the trading screen with currentmarket information. A trader may use the trading screen to place buy andsell orders for tradeable objects or to otherwise trade the tradeableobjects based on the displayed information, for example.

Trading screens may include, provide, and/or display one or more tradingtools. Trading tools are electronic tools that allow, assist with,and/or facilitate electronic trading. Exemplary trading tools include,but are not be limited to, charts, trading ladders, order entry tools,automated trading tools, automated spreading tools, risk managementtools, order parameter tools, order entry systems, market grids, fillwindows, market order windows, and enhancements, features, and/orcombinations thereof.

In certain embodiments, the client device 110 includes an algorithmictrading application. For example, the client device 110 may include ablack box or grey box trading application. As another example, theclient device 110 may include a trading application whichalgorithmically processes market data but provides a user interface toallow a user to manually place orders based on the algorithmicprocessing or to manipulate orders that were placed automatically. Analgorithmic trading application is a trading application which includesan automatically processed algorithm to perform certain actions. Thatis, the trading application includes an automated series of instructionsto perform defined action(s). The actions may include processing marketdata in a particular way, placing an order, modifying an existing order,deleting an order, refraining from placing an order, selecting whichtradeable object(s) to act on, determining a price to place or modify anorder at, determining a quantity to place an order at or modify an orderto be, determining whether an order should be to buy or sell, anddelaying action for a period of time, for example.

As used herein, an algorithm (also referred to as a trading algorithm)is specified by a definition which includes logic expressions andparameters that describe the algorithm to be used in trading. Logicexpressions specify the relationship between parameters and may generatemore parameters. Parameters may include, for example, inputs into thelogic expressions of the algorithm. The definition of an algorithm maybe, at least in part, specified by the algorithmic trading application.For example, an algorithmic trading application may allow a user to onlyspecify parameters to be used by pre-defined logic expressions. Asanother example, an algorithmic trading application may allow a user tospecify some or all of the logic expressions and some or all of theparameters. A trading algorithm where the logic expressions arespecified by a user is a user-defined trading algorithm.

In certain embodiments, the orders from the client device 110 are sentto the exchange 130 through the gateway 120. The client device 110 maycommunicate with the gateway 120 using a local area network, a wide areanetwork, a virtual private network, a T1 line, a T3 line, an ISDN line,a point-of-presence, and/or the Internet, for example.

The gateway 120 is adapted to communicate with the client device 110 andthe exchange 130. The gateway 120 facilitates communication between theclient device 110 and the exchange 130. For example, the gateway 120 mayreceive orders from the client device 110 and transmit the orders to theexchange 130. As another example, the gateway 120 may receive marketdata from the exchange 130 and transmit the market data to the clientdevice 110.

In certain embodiments, the gateway 120 performs processing on datacommunicated between the client device 110 and the exchange 130. Forexample, the gateway 120 may process an order received from the clientdevice 110 into a data format acceptable by the exchange 130. Similarly,the gateway 120 may transform market data in an exchange-specific formatreceived from the exchange 130 into a format understood by the clientdevice 110. The processing of the gateway 120 may also include trackingorders from the client device 110 and updating the status of the orderbased on fill confirmations received from the exchange 130, for example.As another example, the gateway 120 may coalesce market data from theexchange 130 and provide it to the client device 120.

In certain embodiments, the gateway 120 provides services other thanprocessing data communicated between the client device 110 and theexchange 130. For example, the gateway 120 may provide risk processing.

The gateway 120 may include one or more electronic computing platformssuch as a hand-held device, laptop, desktop computer, workstation with asingle or multi-core processor, server with multiple processors, and/orcluster of computers, for example.

The gateway 120 may include one or more gateway applications. Thegateway application(s) may, for example, handle order processing andmarket data processing. This processing may be based on userpreferences, for example.

In certain embodiments, the gateway 120 communicates with the exchange130 using a local area network, a wide area network, a virtual privatenetwork, a T1 line, a T3 line, an ISDN line, a point-of-presence, and/orthe Internet, for example.

In general, the exchange 130 may be owned, operated, controlled, or usedby an exchange entity. Exemplary exchange entities include the CMEGroup, the London International Financial Futures and Options Exchange(“LIFFE”), the IntercontinentalExchange (“ICE”), and Eurex. The exchange130 may be an electronic matching system, such as a computer, server, orother computing device, that is adapted to allow tradeable objects, forexample, offered for trading by the exchange, to be bought and sold.

The exchange 130 is adapted to match orders to buy and sell tradeableobjects. The tradeable objects may be listed for trading by the exchange130. The orders may include orders received from the client device 110,for example. Orders may be received from the client device 110 throughthe gateway 120, for example. In addition, the orders may be receivedfrom other devices in communication with the exchange 130. That is,typically the exchange 130 will be in communication with a variety ofother client devices (which may be similar to client device 110) thatalso provide orders to be matched.

The exchange 130 is adapted to provide market data. The market data maybe provided to the client device 110, for example. The market data maybe provided to the client device 110 through the gateway 120, forexample. The market data may include data that represents the insidemarket, for example. The inside market is the lowest sell price (alsoreferred to as the “best ask”) and the highest buy price (also referredto as the “best bid”) at a particular point in time. The market data mayalso include market depth. Market depth refers to the quantitiesavailable at the inside market and may also refer to quantitiesavailable at other prices away from the inside market. Thus, the insidemarket may be considered the first level of market depth. One tick awayfrom the inside market may be considered the second level of marketdepth, for example. In certain embodiments, market depth is provided forall price levels. In certain embodiments, market depth is provided forless than all price levels. For example, market depth may be providedonly for the first five price levels on either side of the insidemarket. The market data may also include information such as the lasttraded price (LTP), the last traded quantity (LTQ), and order fillinformation.

In certain embodiments, the system 100 includes more than one clientdevice 110. For example, multiple client devices similar to the clientdevice 110, discussed above, may be in communication with the gateway120 to send orders to the exchange 130.

In certain embodiments, the system 100 includes more than one gateway120. For example, multiple gateways similar to the gateway 120,discussed above, may be in communication with the client device 110 andthe exchange 130. Such an arrangement may be used to provide redundancyshould one gateway 120 fail, for example.

In certain embodiments, the system 100 includes more than one exchange130. For example, the gateway 120 may be in communication with multipleexchanges similar to the exchange 130, discussed above. Such anarrangement may allow the client device 110 to trade at more than oneexchange through the gateway 120, for example.

In certain embodiments, the system 100 includes more than one exchange130 and more than one gateway 120. For example, multiple gatewayssimilar to the gateway 120, discussed above, may be in communicationwith multiple exchanges similar to the exchange 130, discussed above.Each gateway may be in communication with one or more differentexchanges, for example. Such an arrangement may allow one or more clientdevices 110 to trade at more than one exchange (and/or provide redundantconnections to multiple exchanges), for example.

In certain embodiments, the client device 110 includes one or morecomputing devices or processing components. In other words, thefunctionality of the client device 110 may be performed by more than onecomputing device. For example, one computing device may generate ordersto be sent to the exchange 130 while another computing device mayprovide a graphical user interface to a trader. In certain embodiments,the gateway 120 includes one or more computing devices or processingcomponents. In other words, the functionality of the gateway 120 may beperformed by more than one computing device. In certain embodiments, theexchange 130 includes one or more computing devices or processingcomponents. In other words, the functionality of the exchange 130 may beperformed by more than one computing device.

In certain embodiments, the gateway 120 is part of the client device110. For example, the components of the gateway 120 may be part of thesame computing platform as the client device 110. As another example,the functionality of the gateway 120 may be performed by components ofthe client device 110. In certain embodiments, the gateway 120 is notpresent. Such an arrangement may occur when the client device 110 doesnot need to utilize the gateway 120 to communicate with the exchange130, for example. For example, if the client device 110 has been adaptedto communicate directly with the exchange 130.

In certain embodiments, the gateway 120 is physically located at thesame site as the client device 110. In certain embodiments, the gateway120 is physically located at the same site as the exchange 130. Incertain embodiments, the client device 110 is physically located at thesame site as the exchange 130. In certain embodiments, the gateway 120is physically located at a site separate from both the client device 110and the exchange 130.

While not shown for the sake of clarity, in certain embodiments, thesystem 100 may include other devices that are specific to thecommunications architecture such as middleware, firewalls, hubs,switches, routers, exchange-specific communication equipment, modems,security managers, and/or encryption/decryption devices.

The components, elements, and/or functionality of the system 100discussed above may be implemented alone or in combination in variousforms in hardware, firmware, and/or as a set of instructions insoftware, for example. Certain embodiments may be provided as a set ofinstructions residing on a computer-readable medium, such as a memory,hard disk, CD-ROM, DVD, EPROM, and/or file server, for execution on ageneral purpose computer, one or more computing devices, or otherprocessing device.

II. Algo Design Lab

FIG. 2A illustrates a block diagram of an electronic trading system 200in which certain embodiments may be employed. The system 200 includesone or more client devices 201, one or more algorithm servers 202, andone or more electronic exchanges 203. Each client device 201 is incommunication one or more algorithm servers 202. Each algorithm server202 is in communication with one or more exchanges 203. In addition, incertain embodiments, although not shown in FIG. 2A, a client device 201may also be in communication with one or more exchanges 203.Communication with an exchange by a client device 201 and/or analgorithm server 202 may be done through a gateway similar to thegateway 120, discussed above, for example.

Client device 201 may be similar to client device 110, discussed above,for example. In certain embodiments, the client device 201 may bereferred to as a trader terminal. Exchange 203 may be similar toexchange 130, discussed above, for example.

In certain embodiments, the algorithm server 202 is located physicallynear or at an exchange 203. In certain embodiments, the algorithm server202 is part of the client device 201.

In operation, an algorithm for electronic trading may be designed on aclient device 201. The algorithm may then be communicated to analgorithm server 202. The algorithm server 202 executes the algorithm toperform electronic trading with the exchange 203. Market data may bereceived by the algorithm server 202 for use by the algorithm. Inaddition, market data may be received by the client device 201 for usein designing the algorithm. The market data may be received from theexchange 203, for example. As another example, market data may bereceived from a simulator or from stored/historical data.

FIG. 2B illustrates a trading interface 210 in which certain embodimentsmay be employed. The trading interface 210 is a trading interface for analgorithmic trading application referred to as the Algo Design Lab(“ADL”). The ADL allows a trader to design an algorithm for electronictrading. Aspects of the ADL are discussed in U.S. patent applicationSer. No. 12/905,709, entitled “User-Defined Algorithm ElectronicTrading”, filed Oct. 15, 2010, which is herein incorporated by referencein its entirety. It is understood that certain embodiments may beincorporated into trading interfaces other than the ADL.

The trading interface 210 includes a design canvas area 211, a blocklist area 212, a variable area 213, and a control area 214. In certainembodiments one or more of these areas may be in separate windows ortoolbars. For example, the block list area 212 may be in a separatewindow from the design canvas area 211.

In operation, an algorithm is defined in the design canvas area 211 byutilizing one or more blocks from the block list area 212. Defaultvalues for user-defined variables in the algorithm may be specifiedusing the variable area 213. Once the algorithm has been defined, thealgorithm may be simulated using controls in the control area 214 toindicate how the logic of the algorithm will behave. An order to bemanaged according to the defined algorithm may then be initiated using atrading interface.

The design canvas area 211 provides for defining an algorithm. Thedesign canvas area 211 may also be referred to as a whiteboard area. Thedesign canvas area 211 provides a visual programming environment fordesigning the algorithm. Designing an algorithm includes building,testing, simulating, and/or evaluating the algorithm.

In certain embodiments, the design canvas area 211 is the primary focusof the interface for the trading application 210 and may be a large,white space, for example. In the design canvas area 211, blocks may bearranged according to the preference of the user. In certainembodiments, the design canvas area 211 provides grid lines that may beused to arrange the blocks. In certain embodiments, the design canvasarea 211 includes an overview display or map that may be used tonavigate through a large algorithm with many blocks. In certainembodiments, the design canvas area 211 may be zoomed in or out so thata user may see more or less of the algorithm at a time.

Blocks are placed in the design canvas area 211 and connected to definethe algorithm. The blocks to be placed may be selected from the blocklist area 212. Once a block has been placed, it may then be connected toother placed blocks.

The block list area 212 includes one or more blocks which may beselected and placed in the design canvas area 211. Blocks representdifferent functionalities that may be combined according to userpreference to build an algorithm.

In general, blocks have inputs and outputs. However, certain blocks mayhave only inputs and others may have only outputs. For example, a pauseblock may have only an input. As another example, a number block mayhave only an output.

Inputs and outputs of blocks are of one of two primary types: continuousor discrete. A continuous type input/output, at any particular point intime (hence continuous) has a value. A discrete type input/outputreceives/provides discrete events (individual messages/objects)corresponding to specific actions/events that occur at some particularpoint in time. When a specific action/event occurs, a correspondingdiscrete event may be generated.

In addition to the primary type of the input/output, an input/output mayhave a particular value types. For example, a continuous input mighthave a value type of Boolean, number, integer, floating point number, orinstrument. As another example, a block may have two continuous inputsof a variable value type, where the value type for the two inputs may beBoolean or numeric, for example, but must match. An equals block, whichtakes two inputs and compares them to output a Boolean indicatingwhether the inputs are equal may have variable inputs so that it may beused to compare Booleans or numbers or instruments, for example. Asanother example, a discrete output might have a value type of fillconfirmation. That is, the discrete output might provide fillconfirmation discrete events. As another example, a discrete outputmight provide more than one type of discrete event for actions such asorder request confirmations (indicating an order was placed), fillconfirmations (indicating an order was filled or partially filled),order change confirmations (indicating a working order parameters suchas price or quantity was changed), order deletion confirmations(indicating a working order was deleted or cancelled), or tradeconfirmations (indicating a trade has occurred). As another example, adiscrete event may be empty in that it indicates only that an event hasoccurred. An empty discrete event may, for example, be triggered by atimer, a change in a Boolean value, or used to activate a portion of analgorithm at a particular time (such as a time of day or a time whencertain market conditions have been met, for example). A discrete eventof a particular type may include different information than a discreteevent of another type. For example, an order confirmation may includeinformation such as an order identifier and/or an instrument. As anotherexample, a fill confirmation discrete event may include information suchas an order identifier, price, quantity, instrument, and/or time of afill. As another example, an order deletion confirmation may include anorder identifier, instrument, and/or time of deletion. As anotherexample, an empty discrete event may not include any information (or mayinclude only a time the event occurred). A discrete event may includeuser-defined information. For example, a discrete event a fillconfirmation for a filled order for instrument A may includeuser-defined market information such as a bid price in instrument B atthe time of the fill in instrument A.

In certain embodiments, a block includes indicators of the primary typefor its inputs/outputs. For example, continuous inputs/outputs may beindicated with a particular background color, foreground color,background pattern, border color, border style, shape, symbol, number,text, and/or font and discrete inputs/outputs might be indicated withanother color, pattern, border, shape, symbol, number, text, and/orfont.

In certain embodiments, a block includes indicators of the value typefor its inputs/outputs. For example, inputs/outputs with a particularvalue type may be indicated with a particular background color,foreground color, background pattern, border color, border style, shape,symbol, number, text, and/or font and inputs/outputs with a differentvalue type may be indicated with another color, pattern, border, shape,symbol, number, text, and/or font.

In certain embodiments, the primary type and/or the value type of aninput or output is displayed in a pop-up window when a cursor ispositioned near the block. In certain embodiments, information about theconfiguration of a block is displayed in a pop-up window when a cursoris positioned near the block.

Blocks represent different functionality. In the trading interface 210,blocks have been separated into four general categories offunctionality: basic blocks, trading blocks, discrete blocks, andmiscellaneous blocks. However, these groupings are for convenientorganization and utilization by a user; blocks do not need to be groupedand a block's group does not necessitate particular features. Someblocks may appropriately fit in more than one category and otherorganizations or groupings of blocks may also be employed.

Basic blocks generally have continuous inputs and outputs and providearithmetic operations (for example, addition, subtraction,multiplication, and division), logical operations (for example, AND, OR,and comparison such as equality, greater than, and less than), constantvalues (for example, number and Boolean), and if-then-else constructs.Basic blocks may include add, subtract, multiply, divide, greater than,less than, greater than or equal, less than or equal, AND, OR, equals,IF-THEN-ELSE, number, Boolean, and constant blocks, for example.

Trading blocks generally provide more complex functionality related tomanipulating an order (for example, placing an order, modifying anexisting order, or deleting an order) or order-related information (forexample, a fill confirmation). Trading blocks may have both continuousand discrete inputs and outputs. For example, a market maker block mayhave continuous inputs for specifying an instrument, price, quantity,and condition for quoting an order and may have a continuous output ofthe working quantity and a discrete output for providing notification offills. Trading blocks allow users, including non-programmers (such astraders), to utilize a visual design environment (such as that providedby the ADL) to create and deploy trading algorithms. The trading blocksmay allow for more rapid and accurate design of an algorithm as comparedto a typical programmer with fewer steps or instructions as compared toother visual programming platforms. Trading blocks may includeinstrument, instrument attribute, market maker, legger, custom spread,responsive buy/sell, conditional buy/sell, order handler, IF-THEN-ELSEinstrument, instrument attribute at price, spread between, trade, order,fill calculator, and fill accumulator blocks, for example.

Discrete blocks generally have discrete inputs and outputs and provideoperations based on the occurrence of discrete events. For example, agenerator block may generate an occurrence of a discrete event. Asanother example, a value extractor block may extract a value from adiscrete event and make it available as a continuous value to anotherportion of the algorithm. As another example, a sequencer block may beused to control the sequence in which subsequent blocks are processed inresponse to a discrete event. Certain discrete blocks may store data tobe referenced at a subsequent time. For example, a value accumulatorblock may receive a discrete event and extract a user-specified valuefrom it. The extracted value may be accumulated with values extractedfrom each received discrete event. Discrete blocks may includegenerator, value extractor, value accumulator, value bucket, discretemoving average, state, branch, multiplexer, funnel, sequencer, discretemin, and discrete max blocks, for example.

Miscellaneous blocks provide a variety of functionality that may notnecessary fit into the above-discussed categories. For example, theseblocks may provide special purpose or more complex calculations or mayadd additional control to the execution of the algorithm itself.Further, miscellaneous blocks may provide more precise tools to controlrisk, convert numbers into tradeable values, or use time (either preciseor elapsed) as an input or variable. Miscellaneous blocks may includemin, max, rounding, display to decimal, not, once true, is number,moving average, conditional f(x), numeric f(x), average, timer, note,random number, square root, log, and pause blocks, for example.

III. Block Placing Tool for Building a User-Defined Algorithm

Certain embodiments provide a block placing tool for building auser-defined algorithm for electronic trading. Certain embodimentsprovide for receiving by a block placing tool a selection of one or moreblocks. Certain embodiments provide for receiving by a block placingtool a mapping definition including a mapping between block types and/orattributes. Certain embodiments provide for placing blocks based on aselection of blocks and a mapping definition.

FIGS. 3A-3C illustrate a trading interface 300 according to certainembodiments. The trading interface 300 includes a design canvas area 310and a plurality of placed blocks 321-327. The trading interface 300 maybe similar to the trading interface 210, discussed above, for example.The design canvas area 310 may be similar to the design canvas area 211,discussed above, for example.

As illustrated in FIG. 3A, a definition for a trading algorithm is beingdesigned using the trading interface 300. The illustrated exampletrading algorithm is a scalping algorithm that will, when certainconditions are met, buy at the best bid price and then attempt to sellat one trading increment above the fill price, typically making a profitof one trading increment per unit bought and sold. Other tradingalgorithms may be designed using the trading interface 300.

More particularly, the algorithm includes a buy market maker block 321and a sell market maker block 326. The buy market maker block 321 is amarket maker block configured to work buy orders. The buy market makerblock 321 is provided with an instrument to buy (“ESZ0”) specified by aninstrument block. The buy market maker block 321 is provided with aprice to buy at specified by an instrument field block 322 whichprovides the best bid price (“124550”) for the instrument. Note that theprices and quantities shown are for a particular instant in time sincethe market for the instrument may be changing over time. The buy marketmaker block 321 is provided with a fixed quantity of 5 to buy specifiedby a number block. The condition input of the buy market maker block 321is provided a Boolean value determined based on several other blocks(“the condition logic”). The condition logic compares the best bidquantity (provided by the instrument block 323) (“108”) for theinstrument to determine if it is greater than the best ask quantity(provided by the instrument block 324) (“16”). This result (“TRUE”) isthen ANDed with a comparison of the best bid quantity (provided by theinstrument block 325) (“619”) of another instrument (“ESH1”) todetermine if it is greater than fixed quantity of 250 specified by anumber block. The AND block provides the Boolean value for the conditionlogic (“TRUE”) to the condition input of the buy market maker block 321.When the condition input is TRUE, the buy market maker block 321 willwork a buy order and when the condition is FALSE, the buy market makerblock 321 will remove/refrain from working the buy order. When the buymarket maker block 321 receives fill confirmations for the buy order itis working, a discrete event is generated.

The sell market maker block 326 is a market maker block configured towork sell orders. The sell market maker block 326 is part of thecovering logic 330. The covering logic 330 will work sell orders tocover positions taken by the buy market maker block 321. The sell marketmaker block 326 is provided with the same instrument (“ESZ0”) to sell.The sell market maker block 326 is provided with a price to sell atspecified by an adder block 327 which adds the minimum price incrementfor the instrument (provided by an instrument field block) (“25”) to thefill price (provided by a value extractor block from the discrete eventgenerated by the buy market maker block 321 when a fill confirmation isreceived). The sell market maker block 326 is provided with a quantityto sell specified by an accumulator block which provides the accumulatedquantity that has been bought by the buy market maker block 321, whichis extracted from the discrete events generated when fill confirmationsare received by the buy market maker block 321.

Thus, when the algorithm is run, the buy market maker block 321 will,when the condition logic indicates to do so, attempt to buy a quantityof 5 at the best bid price (perhaps across multiple buy orders) and sell(perhaps across multiple sell orders) a quantity to match the filled buyquantity at the fill price plus the minimum price increment.

As illustrated in FIG. 3B, the covering logic 330 of the scalpingalgorithm illustrated in FIG. 3A has been grouped in virtualized groupblock 340. An instance of a virtualized group block is created for eachdiscrete event that is provided to the virtualized group block. That is,each time a discrete event is received at virtualized group block 340, anew instance of the virtualized group block 340 is created to handle thediscrete event. This allows each discrete event be handled by thecovering logic 330 based on the information particular to the filldiscrete event provided by the buy market marketer block 321.

While the behavior of the scalping algorithm illustrated in FIG. 3B mayby preferred by a trader, for clarity the following discussion willaddress the scalping algorithm as illustrated in FIG. 3A. It should beunderstood, however, that the block placing tool discussed herein mayoperate with group blocks, nested group blocks, and/or virtualizedblocks.

As discussed above, the algorithm illustrated in FIG. 3A places buyorder(s) and, when those buy order(s) are filled, sell order(s) areplace to cover them. However, it may be desirable to a trader to havethe algorithm include similar logic that, concurrently with the existinglogic, places sell order(s) and, when those sell order(s) are filled,buy order(s) are placed to cover them.

A block placing tool is a tool of a trading interface that may be usedto place new blocks in the algorithm being designed. The block placingtool places blocks based on a selection of blocks and a mapping of blocktypes and/or attributes.

The block placing tool may be activated through an action such asselecting a menu item or pressing one more keys. For example, an “Import& Reverse” men item may be selected to activate the block placing tool.As another example, a “reverse” option may be selected from a pop-upmenu for a selected block to activate the block placing tool. As anotherexample, a key combination such as “Control-R” may be pressed toactivate the block placing tool. In certain embodiments, the blockplacing tool may be accessed using a copy-and-paste-style operation. Forexample, a “Paste Special” interface may be provided to activate theblock placing tool.

The selection of blocks may be determined in a variety of ways. Forexample, the selected blocks may be determined to be all of the placedblocks. As another example, the selected blocks may be determined to bethe placed blocks visible in the design canvas area when the blockplacing tool is activated. As another example, the selected blocks maybe determined based on a user selection. As another example, theselected blocks may be determined based on a defined subset of blocks.All blocks of certain selected and/or pre-defined types may bedetermined to be the selected blocks, for example. As another example,the selected blocks may be determined to be the blocks in a storedmodule or library. As another example, the selected blocks may bedetermined to be one or more blocks on a toolbar. In certainembodiments, one or more of these example techniques for determining theselected blocks are employed.

As illustrated in FIG. 3C, the blocks of the scalping algorithm havebeen selected by a user using a cursor to draw a box 350 around them.Other user interface techniques may also be used by the user to selectthe blocks. For example, a user may click using a user input devicecontrolling a cursor in combination with the shift or control key beingpressed, for example. The selected blocks may also be determined usingother techniques, discussed above, for example.

In certain embodiments, the selection of blocks is determined prior tothe activation of the block placing tool. For example, a user may use acursor to select placed blocks to be used by the block placing tool andthen activate the block placing tool with a menu selection. In certainembodiments, the selection of blocks is determined during the activationof the block placing tool. For example, a user may activate the blockplacing tool with a key combination and the block placing tool maydetermine the selected blocks to be the blocks visible when activated.In certain embodiments, the selection of blocks is determined after theactivation of the block placing tool. For example, the block placingtool may be activated and then lead a user through a series of steps tocomplete the placement including selecting the blocks to be used by thetool.

A mapping of block types and/or attributes specifies a relationshipbetween a one block type and a second block type. The second block typecorresponds to the first block type in the mapping. The first block maybe referred to as the source block, the input block, or the originalblock, for example. The second block may be referred to as thedestination block or the output block, for example.

In general, a mapping may be between two related or complementary blocktypes and/or attributes (such as “Adder Block” to “Subtract Block” or anInstrument Field block with a “Best Bid Price” attribute to a “Best AskPrice” attribute). However, such a relationship is not required. Amapping may be between blocks that share common input and output typesfor inputs and outputs that are connected. For example, an InstrumentField block which includes an attribute specifying the instrument (suchas “ESZ0”) as well as the particular value (such as “Best Bid Price”)may have no inputs and a single numeric output. Such a block may bemapped to a constant number block, which also may have no inputs and asingle numeric output, for example.

In certain embodiments, the block type specified in the mappingdefinition includes an attribute of the block. For example, a mappingdefinition may include a block type (such as an “Instrument Field”block) which may have one or more particular attributes specified (suchas “Bid Price” or “Bid Quantity”). In this case, the particularattribute configured for a block may be viewed as an extension of theblock type (such as “Instrument Field-Bid Price”). That is, whenreferring to the “type” of a block, this may include both the block'sactual type and an attribute, for example. There may be one or more“levels” of attributes (such as “Instrument Field-Bid Price-USD”, whichmay be an Instrument Field block that provides the best bid price inU.S. dollars) that may provide levels of specificity with respect to theblock type, for example. In certain embodiments, the mapping may includeentries for both the first block type and an optional entry for anattribute of the first block. Similarly, the mapping may include entriesfor the second block type and an attribute of the second block.

The mapping of block types and/or attributes may be defined in a varietyof ways. For example, the mapping definition may be user-specified. Asanother example, the mapping definition may be determined each time theblock placing tool is activated. As another example, the mappingdefinition may be pre-defined based on a user preference. As anotherexample, the mapping definition may be pre-defined by a tradingapplication. As another example, the mapping definition may be hardcoded. As another example, the mapping definition may be determinedbased on the selection of blocks. As another example, the mappingdefinition may be determined heuristically by the trading interfacebased on the selection of blocks, visible blocks, and/or blocks beingused in the algorithm. In certain embodiments, one or more of theseexample techniques for determining the mapping definition are employed.

In certain embodiments, the mapping definition is determined prior tothe activation of the block placing tool. For example, a tradingapplication may include pre-defined mappings (either hard coded or thata user may modify) that have been configured before the user activatesthe block placing tool with a menu selection and that are used for eachactivation of the block placing tool. In certain embodiments, themapping definition is determined during the activation of the blockplacing tool. For example, a user may activate the block placing toolwith a key combination and the block placing tool may determine themapping definition heuristically based on the blocks visible whenactivated. In certain embodiments, the mapping definition is determinedafter the activation of the block placing tool. For example, the blockplacing tool may be activated and then lead a user through a series ofsteps to complete the placement including determining the mappingdefinition to be used by the tool. As another example, the block placingtool may be activated by initiating a “Paste Special” command as part ofa copy-and-paste-style operation in the trading interface and aninterface for determining the mapping definition may then be providedprior to the block placing tool placing the new blocks.

FIGS. 4A-4F illustrate an interface 400 for specifying a mappingdefinition according to certain embodiments.

As illustrated in FIG. 4A, the interface 400 includes a block typeinterface 410, a source mapping interface 420, a destination mappinginterface 430, an add button 440, and a block mapping region 450.

In operation, the interface 400 allows a user to specify a mappingdefinition for use with a block placement tool. A block type is selectedfrom the block type interface 410. Depending on the particular blocktype selected, the source mapping interface 420 and/or the destinationmapping interface 430 may be enabled to specify the mapping of blocktypes and/or attributes. Once the source and/or destination mappingshave been specified (if needed), the specified mapping may be added tothe mapping definition. The block mapping region 450 displays themappings included in the mapping definition.

As illustrated in FIG. 4B, the block type interface 410 indicates thatthe “MarketMakerBlock” block type has been selected. The source mappinginterface 420 and the destination mapping interface 430 have been grayedout because the mapping for a market maker block is pre-defined to beflipping (or replacing) a buy market maker block to a sell market makerblock and a sell market maker block to a buy market maker block.

As illustrated in FIG. 4C, when the add button 440 is pressed subsequentto the selection discussed above in reference to FIG. 4B, the mapping isadded to the mapping definition and shown in the block mapping region450 as mapping 451.

As illustrated in FIG. 4D, the block type interface 410 indicates thatthe “Instrument Field” block type has been selected. The source mappinginterface 420 and the destination mapping interface 430 are activated toallow selection of the source and destination attributes for theinstrument field block to be specified in the mapping definition. Asillustrated, the source mapping has been selected to be the “Bid Price”attribute and the destination mapping is being selected as the “AskPrice” attribute. Thus, the mapping to be added to the mappingdefinition is that an instrument field block with an attribute of “BidPrice” will be mapped to an instrument field block with an attribute of“Ask Price.”

As illustrated FIG. 4E, the block type interface 410 indicates that the“AdderBlock” block type has been selected. The source mapping interface420 is grayed out because it is not needed for this block type. Thedestination mapping interface 430 is activated to allow selection of thedestination block type to be specified in the mapping definition. Asillustrated, the destination mapping is being selected to be the“SubtractBlock” block type. Thus, the mapping to be added to the mappingdefinition is that an “AdderBlock” will be mapped to a “SubtractBlock.”

As illustrated in FIG. 4F, the block mapping region 450 shows each ofthe mappings specified for the mapping definition. More particularly,the mapping definition includes mappings 451-455. As discussed above,mapping 451 represents a mapping for a market maker block where thebuy/sell setting of a market maker block is flipped to be sell/buy.Mapping 452 represents a mapping for an instrument field block with a“Bid Price” attribute being mapped to an instrument field block with an“Ask Price” attribute. Mapping 453 represents a mapping for aninstrument field block with a “Bid Quantity” attribute being mapped toan instrument field block with an “Ask Quantity” attribute. Mapping 454represents a mapping for an instrument field block with an “AskQuantity” attribute being mapped to an instrument field block with a“Bid Quantity” attribute. Mapping 455 represents a mapping of an“AdderBlock” to a “SubtractBlock.”

Once the block placing tool has been activated and the selection of theblocks and the mapping definition have each been determined, the blockplacing tool may place new blocks in the algorithm based on theselection of blocks and the mapping definition.

In certain embodiments, the new blocks placed by the block placing toolare placed into a new group block. For example, a user may select anoption for the block placing tool to place the new blocks into a newgroup block in the algorithm.

In certain embodiments, the block placing tool determines the new blocksand, rather than placing the new blocks in the algorithm, performsanother action. For example, the block placing tool may create a newmodule or library containing the determined new blocks. As anotherexample, the block placing tool may put the determined new blocks into aclipboard so that a user may place the determined new blocks into thealgorithm through a “paste” operation.

FIG. 5 illustrates a flowchart 500 of a method according to certainembodiments. Some or all of the method illustrated in the flowchart 500may be performed by a block placing tool to place new blocks, forexample. The method is described with reference to elements of systemsdiscussed above, but it should be understood that other implementationsare possible. The flowchart 500 for the method begins at block 510.

At block 510, a selected block is selected from the selection of blocks.The selection of blocks is the selection of blocks determined asdiscussed above. In general, the selected block may be a block in theselection of blocks that has not previously been selected as theselected block. For example, the selected block may be determined usingan iterator that traverses the blocks in the selection of blocks. Asdiscussed above, the selection of blocks may include blocks such asgroup blocks, nested group blocks, and/or virtualized blocks. In such acase, the method may recurse through the group blocks or otherwiseiterate through them, for example. The method then proceeds to block520.

At block 520, the selected block is evaluated to determine if the typeof the selected block is specified in the mapping definition. Theselected block is the block selected in block 510, discussed above. Themapping definition is the mapping definition determined as discussedabove.

Determining if the type of the selected block is specified in themapping definition may includes evaluating, where appropriate, if anattribute of the selected block is specified in the mapping definition.For example, a mapping definition may include a block type (such as an“Instrument Field” block) which may have one or more particularattributes specified (such as “Bid Price” or “Bid Quantity”). In thiscase, the particular attribute configured for a block may be viewed asan extension of the block type (such as “Instrument Field-Bid Price”)for the purpose of determining if the type of the selected block isspecified in the mapping definition.

In certain embodiments, the evaluation of the attribute may be made as aseparate evaluation. In the embodiment illustrated in FIG. 5, theevaluation of the type of the selected block includes both the type ofthe selected block and, where appropriate, its attributes.

If the type of the selected block is not specified in the mappingdefinition, the method proceeds to block 530. For example, assuming themapping definition is similar to the mapping definition shown in FIG.4F, if the selected block is a “GreaterThanBlock” (which is not in themapping definition), then it is desirable that the block placing toolplace a new “GreaterThanBlock” into the algorithm. If the type of theselected block is specified in the mapping definition, the methodproceeds to block 540. For example, assuming the mapping definition issimilar to the mapping definition shown in FIG. 4F, if the selectedblock is an “AdderBlock” (which is specified in mapping 455), then it isdesirable that the block placing tool place a new “SubtractBlock” intothe algorithm.

At block 530, the type of the new block is determined to be the same asthe type of the selected block. The method then proceeds to block 550.

At block 540, the type of the new block is determined to be the mappedblock type specified in the mapping definition. The method then proceedsto block 550.

At block 550, the new block is placed. The type of then new block is thetype determined in block 530 or block 540, as appropriate. Once the newblock is placed, the method proceeds to block 510 to select anotherblock or ends if no other block should be selected. For example, themethod may end if each block in the selected blocks has been traversed.

One or more of the blocks of the flow chart 500 discussed above may beimplemented alone or in combination in various forms in hardware,firmware, and/or as a set of instructions in software, for example.Certain embodiments may be provided as a set of instructions residing ona computer-readable medium, such as a memory, hard disk, CD-ROM, DVD,EPROM, and/or file server, for execution on a general purpose computer,one or more computing devices, or other processing device.

Certain embodiments may omit one or more of these blocks and/or performthe blocks in a different order than the order listed. For example, someblocks may not be performed in certain embodiments. As a furtherexample, certain blocks may be performed in a different temporal order,including simultaneously, than listed above.

FIGS. 6A-6B illustrate a trading interface 300 according to certainembodiments. As illustrated in FIG. 6A, the trading interface 300 isshown after a block placing tool has be used. The originally placedblocks 611 are the blocks shown in FIG. 3A and are unaltered by theblock placing tool. The newly placed blocks 612 are the blocks placed bythe block placing tool based on the blocks selected as illustrated inFIG. 3C according to the mapping definition illustrated in FIG. 4F.

As illustrated in FIG. 6B, trading interface 300 has been zoomed to showonly the newly placed blocks 612. The buy market maker block 321 and thesell market maker block 326 have been mapped to the sell market makerblock 621 and the buy market maker block 626, respectively, according tomapping 451. The instrument field block 322 with the “Bid Price”attribute has been mapped to the instrument field block 622 with the“Ask Price” attribute, according to mapping 452. The instrument fieldblock 323 and the instrument field block 325, each with the “BidQuantity” attribute, have been mapped to the instrument field block 623and the instrument field block 626, respectively, each with the “AskQuantity” attribute, according to mapping 453. The instrument fieldblock 324 with the “Ask Quantity” attribute has been mapped to theinstrument field block 624 with the “Bid Quantity” attribute, accordingto mapping 454. The adder block 327 has been mapped to the subtractblock 627, according to mapping 455. For the other blocks in theselection of blocks illustrated in FIG. 3C, these blocks were notspecified in the mapping definition and thus the block placing tool justplaced copies of those blocks.

The components, elements, and/or functionality of the interfaces 300 and400 discussed above may be implemented alone or in combination invarious forms in hardware, firmware, and/or as a set of instructions insoftware, for example. Certain embodiments may be provided as a set ofinstructions residing on a computer-readable medium, such as a memory,hard disk, CD-ROM, DVD, EPROM, and/or file server, for execution on ageneral purpose computer, one or more computing devices, or otherprocessing device.

FIG. 7 illustrates a flowchart 700 of a method according to certainembodiments. Some or all of the method illustrated in the flowchart 700may be performed by a block placing tool, for example. The method isdescribed with reference to elements of systems discussed above, but itshould be understood that other implementations are possible. Theflowchart 700 for the method begins at block 710.

At block 710, a selection of blocks is determined. The selection ofblocks may be determined as discussed above, for example. In certainembodiments, the selection of blocks is determined by a user. In certainembodiments, the selection of blocks is determined by a block placingtool. The method then proceeds to block 720.

At block 720, the selection of blocks is received. The receivedselection of blocks may be, or may be based on, the selection of blocksdetermined at block 710 discussed above, for example. The method thenproceeds to block 730.

At block 730, a mapping definition is determined. The mapping definitionmay be determined as discussed above, for example. In certainembodiments, the mapping definition is determined by a user. In certainembodiments, the mapping definition is determined by a block placingtool. The method then proceeds to block 740.

At block 740, the mapping definition is received. The received mappingdefinition may be, or may be based on, the mapping definition determinedat block 730 discussed above, for example. The method then proceeds toblock 750.

At block 750, the new blocks are placed based on the selection of blocksand the mapping definition. The selection of blocks may be the selectionof blocks received at block 720 discussed above, for example. Themapping definition may be the mapping definition received at block 740discussed above, for example. One or more new blocks may be placed by ablock placing tool as discussed above, for example. In certainembodiments, a block placing tool uses the method illustrated by theflowchart 500 in FIG. 5, discussed above.

One or more of the blocks of the flow chart 700 discussed above may beimplemented alone or in combination in various forms in hardware,firmware, and/or as a set of instructions in software, for example.Certain embodiments may be provided as a set of instructions residing ona computer-readable medium, such as a memory, hard disk, CD-ROM, DVD,EPROM, and/or file server, for execution on a general purpose computer,one or more computing devices, or other processing device.

Certain embodiments may omit one or more of these blocks and/or performthe blocks in a different order than the order listed. For example, someblocks may not be performed in certain embodiments. As a furtherexample, certain blocks may be performed in a different temporal order,including simultaneously, than listed above.

IV. Example Computing Device

FIG. 8 illustrates a block diagram of a computing device 800 accordingto certain embodiments. The client device 110 may include one or morecomputing devices 800, for example. The client device 201 may includeone or more computing devices 800, for example. The algorithm server 202may include one or more computing devices 800, for example. The gateway120 may include one or more computing devices 800, for example. Theexchange 130 may include one or more computing devices 800, for example.The exchange 203 may include one or more computing devices 800, forexample.

The computing device 800 includes a bus 810, a processor 820, a memory830, a network interface 840, a display device 850, an input device 860,and an output device 870. The computing device 800 may includeadditional, different, or fewer components. For example, multiple buses,multiple processors, multiple memory devices, multiple networkinterfaces, multiple display devices, multiple input devices, multipleoutput devices, or any combination thereof, may be provided. As anotherexample, the computing device 800 may not include an output device 870separate from the display device 850. As another example, the computingdevice 800 may not include a display device 850. As another example, thecomputing device 800 may not include an input device 860. Instead, forexample, the computing device 800 may be controlled by an external orremote input device via the network interface 840.

The bus 810 may include a communication bus, channel, network, circuit,switch, fabric, or other mechanism for communicating data betweencomponents in the computing device 800. The bus 810 may becommunicatively coupled with and transfer data between any of thecomponents of the computing device 800. For example, during aninstallation process of a trading application, one or morecomputer-readable instructions that are to be executed by the processor820 may be transferred from an input device 860 and/or the networkinterface 840 to the memory 830. When the computing device 800 isrunning or preparing to run the trading application stored in the memory830, the processor 820 may retrieve the instructions from the memory 830via the bus 810.

The processor 820 may include a general processor, digital signalprocessor, application specific integrated circuit, field programmablegate array, analog circuit, digital circuit, programmed processor,combinations thereof, or other now known or later developed processingdevice. The processor 820 may be a single device or a combination ofdevices, such as associated with a network or distributed processing.Any processing strategy may be used, such as multi-processing,multi-tasking, parallel processing, and/or remote processing, forexample. Processing may be local or remote and may be moved from oneprocessor to another processor.

The processor 820 may be operable to execute logic encoded in one ormore tangible media, such as memory 830 and/or via network device 840.As used herein, logic encoded in one or more tangible media includesinstructions that are executable by the processor 820 or a differentprocessor. The logic may be stored as part of software, hardware,integrated circuits, firmware, and/or micro-code, for example. The logicmay be received from an external communication device via acommunication network, for example, connected to the Internet. Theprocessor 820 may execute the logic to perform the functions, acts, ortasks illustrated in the figures or described herein.

The memory 830 may be tangible media, such as computer readable storagemedia, for example. Computer readable storage media may include varioustypes of volatile and non-volatile storage media, including but notlimited to random access memory, read-only memory, programmableread-only memory, electrically programmable read-only memory,electrically erasable read-only memory, flash memory, magnetic tape ordisk, optical media, any combination thereof, or any other now known orlater developed tangible data storage device. The memory 830 may includea single device or multiple devices. For example, the memory 830 mayinclude random access memory and hard drive storage. The memory 830 maybe adjacent to, part of, programmed with, networked with, and/or remotefrom processor 820, such that data stored in the memory 830 may beretrieved and processed by the processor 820, for example.

The memory 830 may store instructions that are executable by theprocessor 820. The instructions may be executed to perform one or moreof the acts or functions described herein or shown in the figures.

The network interface 840 may be a one-way or two-way communicationcoupling. Accordingly, the network interface 840 may communicativelyconnect one, two, or more communication networks or devices. Forexample, the bus 810 may be coupled with a gateway similar to gateway120 discussed above via the network interface 840, such that one, some,or all of the components of the computing device 800 are accessible orcan communicate with the gateway. As another example, the networkinterface 840 may couple the bus 810 with other communication networks.The network interface 840 may be, for example, an integrated servicesdigital network (ISDN) card or a modem to provide a data communicationconnection. As another example, network interface 840 may be a localarea network (LAN) card to provide a data communication connection to acompatible LAN, for example, connected to the Internet. Wireless linksmay also be implemented. The network interface 840 may send and receiveelectrical, electromagnetic, or optical signals that carry analog ordigital data streams representing various type of information, forexample.

The display device 850 may include a visual output device, cathode raytube (CRT) display, electronic display, electronic paper, flat paneldisplay, light-emitting diode (LED) displays, electroluminescent display(ELD), plasma display panels (PDP), liquid crystal display (LCD),thin-film transistor displays (TFT), organic light-emitting diodedisplays (OLED), surface-conduction electron-emitter display (SED),laser television, carbon nanotubes, nanocrystal displays, head-mounteddisplay, projector, three-dimensional display, transparent displaydevice, and/or other now known or later developed display, for example.

The display device 850 is adapted to display a trading screen. Thetrading screen may be similar to the trading screens discussed above,for example. The trading screen may be interactive. An interactivetrading screen may allow, for example, one or more trading actions to beperformed using the trading screen. For example, an interactive tradingscreen may allow one or more order entry parameters to be set and/orsent using one or more order entry actions. The display device 850and/or input device 860 may be used to interact with the trading screen,for example.

The input device 860 may include a keyboard, mouse, microphone,touch-screen, trackball, keypad, joystick, and/or other device forproviding input, for example. The input device 860 may be used, forexample, to provide command selections to processor 820. For example,the input device 860 may be a mouse that is used to control a cursordisplayed on a trading screen. The mouse may include one or more buttonsfor selection and control, for example.

The output device 870 may include a keyboard, mouse, speakers,touch-screen, trackball, keypad, haptic device or system, joystick,and/or other device for providing output, for example. For example, theoutput device 870 may be used to output one or more signals, such as ahaptic signal or an audio signal, to a user.

While the present inventions have been described with reference tocertain embodiments, it will be understood by those skilled in the artthat various changes may be made and equivalents may be substitutedwithout departing from the scope of the inventions. In addition, manymodifications may be made to adapt a particular situation or material tothe teachings of the inventions without departing from their scope.Therefore, it is intended that the inventions not be limited to theparticular embodiments disclosed, but that the inventions will includeall embodiments falling within the scope of the claims.

1. (canceled)
 2. A non-transitory computer readable medium having storedtherein instructions executable by a processor, wherein the instructionsare executed to: receive a selection of blocks, wherein the selection ofblocks includes at least one block of a plurality of placed blocks in adesign canvas area, wherein the plurality of placed blocks are arrangedto specify a definition for a trading algorithm, wherein each block inthe selection of blocks has a block type; receive a mapping definition,wherein the mapping definition includes at least one mapping, whereineach mapping in the mapping definition specifies a relationship betweena first type and a corresponding second type, wherein the first typeincludes a first block type, wherein the second type includes a secondblock type; receive a command to activate a block placing tool; and, inresponse to receiving the command to activate the block placing tool,for each selected block in the selection of blocks the instructions areexecutable to: determine whether the block type of the selected blockconforms to a mapping in the mapping definition; determine a new blocktype, wherein the new block type is the corresponding block typespecified in the mapping when the block type of the selected blockconforms to the mapping and the new block type is the block type of theselected block when the block type of the selected block does notconform to a mapping in the mapping definition; and place a new block ofthe determined new block type in the design canvas area.
 3. The computerreadable medium of claim 2, wherein the selection of blocks includes allblocks placed in the design canvas area prior to placing a new block. 4.The computer readable medium of claim 2, wherein the selection of blocksis determined by a user.
 5. The computer readable medium of claim 2,wherein the instructions are further executed to automatically determinethe selection of blocks.
 6. The computer readable medium of claim 2,wherein the mapping definition is pre-defined.
 7. The computer readablemedium of claim 2, wherein the mapping definition is determined by auser.
 8. The computer readable medium of claim 2, wherein theinstructions are further executed to automatically determine the mappingdefinition.
 9. The computer readable medium of claim 2, wherein thefirst type includes a first attribute and the second type includes asecond attribute for at least one mapping in the mapping definition. 10.The computer readable medium of claim 2, wherein the mapping definitionis received before the selection of blocks is received.
 11. The computerreadable medium of claim 2, wherein the selection of blocks and themapping definition are received as part of the command to activate theblock placing tool.
 12. The computer readable medium of claim 2, whereinthe selection of blocks is received before the command to activate theblock placing tool is received.
 13. The computer readable medium ofclaim 2, wherein the mapping definition is received as part of thecommand to activate the block placing tool.